package com.jbp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jbp.model.PrizePool;
import com.jbp.model.PrizePoolRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.LinkedList;
import java.util.List;

/**
 * 奖池列表
 * 
 * @author lucheng feng
 * @email retailers@gmail.com
 * @date 2020-06-26 13:49:50
 */

public interface PrizePoolDao extends BaseMapper<PrizePool> {
    @Select("select max(prize_pool_num) from prize_pool ")
    Integer getMaxPrizeNum();

    Integer bulkInsert(@Param("list") LinkedList<Integer> list, @Param("prizeId") Integer prizeId);

    Integer delPool(@Param("list")List<PrizePool> prPol);

    List<PrizePool> getPoolList(@Param("prizeDeployId") Integer prizeDeployId ,@Param("type") Integer type);
}
